/*
 * This file is part of Ember.
 *
 * Ember is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Ember is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Ember.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Copyright (C) Grant Tyra 2010
 * granttyra@gmail.com
*/

#ifndef EMBER_TYPES_H_
#define EMBER_TYPES_H_

#include "ember_object.h"

EMBER_EXPORT void EmberObjectInstall();
EMBER_EXPORT void EmberNullInstall();
EMBER_EXPORT void EmberIntegerInstall();
EMBER_EXPORT void EmberDecimalInstall();
EMBER_EXPORT void EmberStringInstall();

EMBER_EXPORT EmberObject *EmberObjectCreateString(const char*);
EMBER_EXPORT EmberObject *EmberObjectCreateDecimal(float);
EMBER_EXPORT EmberObject *EmberObjectCreateInteger(int);

EMBER_EXPORT int EmberIntegerValue(EmberObject*);
EMBER_EXPORT float EmberDecimalValue(EmberObject*);
EMBER_EXPORT char *EmberStringValue(EmberObject*);

EMBER_EXPORT EmberObject *EmberNull();

extern EmberObject *emberNull;

#endif
